#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "authentification.h"
int authentification(char password[15],char login[15] )
{
     char pswrd[15]="0000";
    char log[15]="admin";
    int r=5;
    int i=1;

    do{
        printf("entrer votre login: ");
        scanf("%s",login);
        printf("entrer votre mot de passe : ");
        scanf("%s",password);

    if ((strcmp(log,login)==0) && (strcmp(pswrd,password)==0))
    {
        printf("succés d'authentification");
        break;
    }
    else {printf ("login et mot de passe incorectes ressayer  ");
            i++;}
    }while (i<=r);



    return 0;
}
int main()
{int a;
char password[15];
char login[15];
a=authentification(password,login);

<<<<<<< .mine
return 0;
}
=======
return 0;
}>>>>>>> .r67
